After the reader presses the button below, I'll ask if he or she wants to say hello. If so, I'll say hello with an alert.
if (confirm("Say Hello?")) alert("Hello World!")